package cn.dujc.superkid.adapter;

import android.support.annotation.Nullable;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import java.util.List;

import cn.dujc.core.adapter.BaseAdapter;
import cn.dujc.core.adapter.BaseViewHolder;
import cn.dujc.superkid.R;
import cn.dujc.superkid.bean.ExamineListResult;

public class TestAdapter extends BaseAdapter<ExamineListResult.ExListEntity> {
    public TestAdapter(@Nullable List<ExamineListResult.ExListEntity> data) {
        super(data);
        mLayoutResId = R.layout.item_test_title;
    }

    @Override
    protected void convert(BaseViewHolder helper, ExamineListResult.ExListEntity item) {
        helper.setText(R.id.testTitle,item.getEx_title());
    }

//    private List<ExamineListResult.ExListEntity> followList;
//
//
//    public TestAdapter(List<ExamineListResult.ExListEntity> followList) {
//        this.followList = followList;
//    }
//
//
//    @Override
//    public TeacherAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
//        View itemView = LayoutInflater.from(parent.getContext()).inflate(R.layout.item_test_title, parent, false);
//        return new TeacherAdapter.ViewHolder(itemView);
//    }
//
//    @Override
//    public void onBindViewHolder(TeacherAdapter.ViewHolder holder, int position) {
//
//    }
//
//    @Override
//    public int getItemCount() {
//        return followList.size();
//    }
//
//    public static class ViewHolder extends RecyclerView.ViewHolder {
//        public ViewHolder(View itemView) {
//            super(itemView);
//        }
//    }
}